CREATE TABLE [dbo].[AMS_InputServers](
	[ServerName] [varchar](150) NOT NULL,
	[Comment] [varchar](350) NULL,
	[UseInput] [varchar](3) NULL,
	[BackupDir] [nvarchar](1000) NULL,
	[Environment] [nvarchar](20) NULL,
	[BackupTime] [nvarchar](20) NULL,
	[OutputFileDirectory] [nvarchar](1000) NULL,
	[MaintScriptID] [int] NULL,
	[BackupRetention] [int] NULL,
 CONSTRAINT [PK_InputServers] PRIMARY KEY CLUSTERED 
(
	[ServerName] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]

CREATE TABLE [dbo].[AMS_Exceptions](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[ExceptionType] [nvarchar](30) NOT NULL,
	[ExceptionServer] [nvarchar](50) NOT NULL,
	[ExceptionValue] [nvarchar](300) NOT NULL,
	[ExceptionValue2] [nvarchar](300) NULL
) ON [PRIMARY]

CREATE TABLE [dbo].[InputServersUnavailable](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[ServerName] [varchar](150) NOT NULL,
	[DateTimeUnavailable] [datetime] NOT NULL
) ON [PRIMARY]

CREATE TABLE [dbo].[AMS_MaintScript](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[ScriptDate] [nvarchar](10) NULL
) ON [PRIMARY]